const express = require('express');
const verify = require('./../controller/verify.server.controller.js');

module.exports = (app) => {
    const router = express.Router();
    router.route('/outer/api/verify/add')
    .post(verify.addVerify);

    router.route('/api/verify/state/update')
    .put(verify.modifyVerifyState);
    
    router.route('/api/verify/block/update')
    .put(verify.modifyVerifyBlock);

    router.route('/api/verify/:id')
    .get(verify.getVerifyById);

    router.route('/outer/api/verify/m/:mid')
    .get(verify.getVerifyByMid);
    
    router.route('/outer/api/verify/:state/:block/all')
    .get(verify.getAllVerify);

    app.use(router);
};
